package com.tjsinfo.tjsoa.documentationflow.dangweifawen.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

//import com.tjsinfo.tjsoa.documentationflow.gonghuifawei.vo.TGonghuifaweiFujian;

/**
 * TDangweifawenNeirong entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TDangweifawenNeirong implements java.io.Serializable {

	// Fields

	private String id;
	private Integer flowid;
	private String biaoti;
	private String zhusong;
	private String chaosong;
	private String chaobao;
	private String zhutici;
	private String miji;
	private String fujian;
	private Integer nigaorenid;
	private String nigaorenname;
	private String chengbanbumen;
	private String wenhaotype;
	private String wenhaonumber;
	private Date fawendatetime;
	private String jingshouren;
	private String docname;
	private String zhuangta;
	private Long taskId;
	private String fenshu;
	private Integer sortid;
	private String jingshoubumen;
	private Set TDangweifawenYijians = new HashSet(0);
	private Set TDangweifawenFujians = new HashSet(0);
	private Set TDangweifawenZhengwens = new HashSet(0);
	private Set TDangweifawenBeizhus = new HashSet(0);
	private Date qiChaoRiQi;
	private Integer isguidang;
	private Integer state;
	private Integer isDown;
	private Integer dataBaseId;
	private String wentype;
	private Integer wenhao;
	private Integer wenyear;
	private String haotype;
	private String dangqianhuanjie;
	private String temptype;
	private String fengfadate;
	// Constructors

	public String getFengfadate() {
		return fengfadate;
	}

	public void setFengfadate(String fengfadate) {
		this.fengfadate = fengfadate;
	}
	
	public Integer getIsDown() {
		return isDown;
	}

	public void setIsDown(Integer isDown) {
		this.isDown = isDown;
	}

	public Integer getDataBaseId() {
		return dataBaseId;
	}

	public void setDataBaseId(Integer dataBaseId) {
		this.dataBaseId = dataBaseId;
	}

	/** default constructor */
	public TDangweifawenNeirong() {
	}

	/** full constructor */
	public TDangweifawenNeirong(Integer flowid, String biaoti, String zhusong,
			String chaosong, String zhutici, String miji, String fujian,
			Integer nigaorenid, String nigaorenname, String chengbanbumen,
			String wenhaotype, String wenhaonumber, Date fawendatetime,
			String jingshouren, String docname, String zhuangta,
			Set TDangweifawenYijians, Set TDangweifawenFujians,Set TDangweifawenZhengwens,
			Set TDangweifawenBeizhus) {
		this.flowid = flowid;
		this.biaoti = biaoti;
		this.zhusong = zhusong;
		this.chaosong = chaosong;
		this.zhutici = zhutici;
		this.miji = miji;
		this.fujian = fujian;
		this.nigaorenid = nigaorenid;
		this.nigaorenname = nigaorenname;
		this.chengbanbumen = chengbanbumen;
		this.wenhaotype = wenhaotype;
		this.wenhaonumber = wenhaonumber;
		this.fawendatetime = fawendatetime;
		this.jingshouren = jingshouren;
		this.docname = docname;
		this.zhuangta = zhuangta;
		this.TDangweifawenYijians = TDangweifawenYijians;
		this.TDangweifawenFujians = TDangweifawenFujians;
		this.TDangweifawenZhengwens=TDangweifawenZhengwens;
		this.TDangweifawenBeizhus=TDangweifawenBeizhus;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getFlowid() {
		return this.flowid;
	}

	public void setFlowid(Integer flowid) {
		this.flowid = flowid;
	}

	public String getBiaoti() {
		return this.biaoti;
	}

	public void setBiaoti(String biaoti) {
		this.biaoti = biaoti;
	}

	public String getZhusong() {
		return this.zhusong;
	}

	public void setZhusong(String zhusong) {
		this.zhusong = zhusong;
	}

	public String getChaosong() {
		return this.chaosong;
	}

	public void setChaosong(String chaosong) {
		this.chaosong = chaosong;
	}

	public String getZhutici() {
		return this.zhutici;
	}

	public void setZhutici(String zhutici) {
		this.zhutici = zhutici;
	}

	public String getMiji() {
		return this.miji;
	}

	public void setMiji(String miji) {
		this.miji = miji;
	}

	public String getFujian() {
		return this.fujian;
	}

	public void setFujian(String fujian) {
		this.fujian = fujian;
	}

	public Integer getNigaorenid() {
		return this.nigaorenid;
	}

	public void setNigaorenid(Integer nigaorenid) {
		this.nigaorenid = nigaorenid;
	}

	public String getNigaorenname() {
		return this.nigaorenname;
	}

	public void setNigaorenname(String nigaorenname) {
		this.nigaorenname = nigaorenname;
	}

	public String getChengbanbumen() {
		return this.chengbanbumen;
	}

	public void setChengbanbumen(String chengbanbumen) {
		this.chengbanbumen = chengbanbumen;
	}

	public String getWenhaotype() {
		return this.wenhaotype;
	}

	public void setWenhaotype(String wenhaotype) {
		this.wenhaotype = wenhaotype;
	}

	public String getWenhaonumber() {
		return this.wenhaonumber;
	}

	public void setWenhaonumber(String wenhaonumber) {
		this.wenhaonumber = wenhaonumber;
	}

	public Date getFawendatetime() {
		return this.fawendatetime;
	}

	public void setFawendatetime(Date fawendatetime) {
		this.fawendatetime = fawendatetime;
	}

	public String getJingshouren() {
		return this.jingshouren;
	}

	public void setJingshouren(String jingshouren) {
		this.jingshouren = jingshouren;
	}

	public String getDocname() {
		return this.docname;
	}

	public void setDocname(String docname) {
		this.docname = docname;
	}

	public String getZhuangta() {
		return this.zhuangta;
	}

	public void setZhuangta(String zhuangta) {
		this.zhuangta = zhuangta;
	}

	public Set getTDangweifawenYijians() {
		return this.TDangweifawenYijians;
	}

	public void setTDangweifawenYijians(Set TDangweifawenYijians) {
		this.TDangweifawenYijians = TDangweifawenYijians;
	}

	public Set getTDangweifawenFujians() {
		return this.TDangweifawenFujians;
	}

	public void setTDangweifawenFujians(Set TDangweifawenFujians) {
		this.TDangweifawenFujians = TDangweifawenFujians;
	}
	public Set getTDangweifawenZhengwens() {
		return TDangweifawenZhengwens;
	}

	public void setTDangweifawenZhengwens(Set tDangweifawenZhengwens) {
		TDangweifawenZhengwens = tDangweifawenZhengwens;
	}

	public Set getTDangweifawenBeizhus() {
		return TDangweifawenBeizhus;
	}

	public void setTDangweifawenBeizhus(Set tDangweifawenBeizhus) {
		TDangweifawenBeizhus = tDangweifawenBeizhus;
	}

	public void addFujian(TDangweifawenFujian dangweifawenFujian)
	{
		dangweifawenFujian.setTDangweifawenNeirong(this);
		TDangweifawenFujians.add(dangweifawenFujian);
		
	}
	public void addZhengwen(TDangweifawenZhengwen dangweifawenZhengwen)
	{
		dangweifawenZhengwen.setTDangweifawenNeirong(this);
		TDangweifawenZhengwens.add(dangweifawenZhengwen);
		
	}
	public void addBeizhu(TDangweifawenBeizhu dangweifawenBeizhu)
	{
		dangweifawenBeizhu.setTDangweifawenNeirong(this);
		TDangweifawenBeizhus.add(dangweifawenBeizhu);
		
	}

	public Long getTaskId() {
		return taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	public String getFenshu() {
		return fenshu;
	}

	public void setFenshu(String fenshu) {
		this.fenshu = fenshu;
	}

	public Integer getSortid() {
		return sortid;
	}

	public void setSortid(Integer sortid) {
		this.sortid = sortid;
	}

	public String getJingshoubumen() {
		return jingshoubumen;
	}

	public void setJingshoubumen(String jingshoubumen) {
		this.jingshoubumen = jingshoubumen;
	}

	public Date getQiChaoRiQi() {
		return qiChaoRiQi;
	}

	public void setQiChaoRiQi(Date qiChaoRiQi) {
		this.qiChaoRiQi = qiChaoRiQi;
	}

	public Integer getIsguidang() {
		return isguidang;
	}

	public void setIsguidang(Integer isguidang) {
		this.isguidang = isguidang;
	}

	public String getChaobao() {
		return chaobao;
	}

	public void setChaobao(String chaobao) {
		this.chaobao = chaobao;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getWentype() {
		return wentype;
	}

	public void setWentype(String wentype) {
		this.wentype = wentype;
	}

	public Integer getWenhao() {
		return wenhao;
	}

	public void setWenhao(Integer wenhao) {
		this.wenhao = wenhao;
	}

	public Integer getWenyear() {
		return wenyear;
	}

	public void setWenyear(Integer wenyear) {
		this.wenyear = wenyear;
	}

	public String getHaotype() {
		return haotype;
	}

	public void setHaotype(String haotype) {
		this.haotype = haotype;
	}

	public String getDangqianhuanjie() {
		String temp = "";
		if("办公室主任二次复核".equals(dangqianhuanjie)){
			temp = "复核";
		}else if("办公室主任复核".equals(dangqianhuanjie)){
			temp = "复核";
		}else if("拟稿人修改内容".equals(dangqianhuanjie)){
			temp = "修改";
		}else if("签发".equals(dangqianhuanjie)){
			temp = "待签发";
		}else{
			temp =  dangqianhuanjie;
		}
		if ("封发".equals(temp)) {
			;
		}else{
			temp = "<font class=\"green\">"+temp+"</font>";
		}
		
		return temp;
	}

	public void setDangqianhuanjie(String dangqianhuanjie) {
		this.dangqianhuanjie = dangqianhuanjie;
	}

	public String getTemptype() {
		return temptype;
	}

	public void setTemptype(String temptype) {
		this.temptype = temptype;
	}
	
	public String getBiaoTiDisplay(){
		if(biaoti.length() > 13){
			return biaoti.substring(0,12)+"...";
		}else{
			return biaoti;
		}
	}	
}